package com.xyongfeng.foodManagement.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xyongfeng.foodManagement.domain.Role;
import com.xyongfeng.foodManagement.domain.dto.RoleDTO;
import com.xyongfeng.foodManagement.domain.vo.AdminInfoVO;
import com.xyongfeng.foodManagement.domain.vo.RoleVO;

import java.util.List;

/**
* @author xyongfeng
* @description 针对表【role】的数据库操作Service
* @createDate 2024-06-10 13:53:47
*/
public interface RoleService extends IService<Role> {

    List<Role> getRoleByAdminId(Integer adminId);


    List<AdminInfoVO> selectAdminByRoleId(Integer roleId);

    Role addRole(String roleName);
    List<RoleVO> selectAllRoleInfo();

    boolean updateRole(RoleDTO roleDTO);

    boolean deleteByRoleId(Integer roleId);
}
